package lab02;

public class Zelos implements Boss {
    private String name;
    private int hp;

    public Zelos(String name, int hp) {
        this.name = name;
        this.hp = hp;
    }

    public Zelos() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getHp() {
        return hp;
    }

    public void setHp(int hp) {
        this.hp = hp;
    }

    @Override
    public void attack() {
        System.out.println("Boss:" + this.name + "来了一个左鞭腿," + this.name + "当前血量" + this.hp + "点");
    }

    @Override
    public void moveMode() {
        System.out.println("Boss:" + this.name + "正在飞行移动");
    }

    @Override
    public void addBlood() {
        if (hp < 10) {
            hp = hp + 30;
            System.out.println("加血成功！血量+30点，Boss：" + this.name + "血量剩余" + this.hp + "点。");
        } else System.out.println("加血失败！Boss:" + this.name + "血量未小于10点!");
    }
}
